package com.demo;

import java.util.ResourceBundle;

//参考：https://blog.csdn.net/hanys_csdn/article/details/80232262
public class ResourceUtil {
    private static final ResourceBundle resourceBundle;

    static{
        resourceBundle = ResourceBundle.getBundle("db");
    }

    //根据key(键)获取value(值)
    public static String getValue(String key){
        return resourceBundle.getString(key);
    }
}